
let payload = function(el,{ value }){
    let img = new Image();

    img.onload = function(){
        el.src = value;
    }

    img.src = value;
}

export default {
    install(Vue){
        Vue.directive("payload",payload)
    }
}